﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ParkingLot.Entitys;

namespace ParkingLot.Utility.Compare
{
    /// <summary>
    /// OrderPare的比较器
    /// </summary>
    public class OrderPareCompare : IEqualityComparer<OrderPare<int, string>>
    {
        public bool Equals(OrderPare<int, string> x, OrderPare<int, string> y)
        {
            if (x.ValueMember == y.ValueMember)
            {
                return true;
            }
            return false;
        }

        public int GetHashCode(OrderPare<int, string> obj)
        {
            return obj.ValueMember;
        }
    }
}
